//
//  xmlexceptions.h
//  xml
//
//  Created by Billy Clack on 11/29/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#ifndef xml_xmlexceptions_h
#define xml_xmlexceptions_h

// Called when there is an error validating the XML document.
class xml_validate_exception : public std::exception 
{
public:
    virtual const char * what() {
        return "Parser error: Error validating xml.";
    }
    
};

// Called when there is an error reading the syntax
class xml_syntax_exception : public std::exception 
{
public:
    virtual const char * what() {
        return "Parser error: Error with xml syntax.";
    }
};

// Called when the file was not loaded correctly.
class xml_filenotfound_exception : public std::exception 
{
public:
    virtual const char * what() {
        return "File load error: File not found.";
    }
};



#endif
